<cfcomponent persistent="true"  table="customer" >

	<cfproperty name="cust_notes" />
	<cfproperty name="cus_sysid" ormtype="integer" type="integer" fieldtype="id" generator="increment" />
	<cfproperty name="cus_name_first" ormtype="string" type="string" />
	<cfproperty name="cus_name_last" ormtype="string" type="string" />
	<cfproperty name="cus_full_name" ormtype="string" type="string" />
	<cfproperty name="cus_address" ormtype="string" type="string" />
	<cfproperty name="cus_city" ormtype="string" type="string" />
	<cfproperty name="cus_state" ormtype="string" type="string" />
	<cfproperty name="cus_zip_code" ormtype="string" type="string" />
	<cfproperty name="cus_zip_plus" ormtype="string" type="string" />
	<cfproperty name="cus_areacode" ormtype="integer" type="integer" />
	<cfproperty name="cus_phonenum" ormtype="integer" type="integer" />
	<cfproperty name="cus_first_contact" ormtype="integer" type="integer" />
	<cfproperty name="cus_notes_q" />

	<cffunction name="getIDName" access="public" returnType="string" >

		<cfset var id = StructFindValue( GetMetaData(This), "id")[1].owner.name />
		<cfreturn id />
	</cffunction>

	<cffunction name="getIDValue" access="public" returnType="any" >
		<cfreturn variables[getIDName()] />
	</cffunction>

	<cffunction name="setIDValue" access="public" returnType="void" >
		<cfargument name="idvalue" type="any"  />
		<cfset variables[getIDName()] = arguments.idvalue />
	</cffunction>

	<cffunction name="nullifyZeroID" access="public" returnType="void" >
		<cfif getIDValue() eq 0>
			<cfset variables[getIDName()] = JavaCast("Null", "") />
		</cfif>
	</cffunction>

</cfcomponent>